import { UserInterface } from './user';

export namespace RoleInterface {
  /**
   * 角色信息
   */
  export interface RoleInfo {
    id: number;
    name: string;
    status: number;
    remark?: any;
    systemId?: any;
    createdTime?: any;
    updateTime?: any;
  }

  /**
   * 用户权限信息
   */
  export interface AuthByUser {
    userVo: UserInterface.ResUser;
    roleList: String[];
    buttonPermissionList: Array<String>;
    frontRoutes: Menu.MenuOptions[];
  }

  /**
   * 保存角色
   */
  export interface ReqSave {
    id?: number;
    name: string;
    remark: string;
    systemId: number;
  }
}
